package net.minecraft.world.gen;

import net.minecraft.world.World;
import net.minecraft.world.chunk.ChunkPrimer;
import net.minecraft.world.chunk.IChunkProvider;

import java.util.Random;

public class MapGenBase {
    /**
     * The number of Chunks to gen-check in any given direction.
     */
    protected int range = 8;

    /**
     * The RNG used by the MapGen classes.
     */
    protected Random rand = new Random();

    /**
     * This world object.
     */
    protected World worldObj;
    // private static final String __OBFID = "CL_00000394";

    public void func_175792_a(IChunkProvider p_175792_1_, World worldIn, int p_175792_3_, int p_175792_4_, ChunkPrimer p_175792_5_) {
        int var6 = this.range;
        this.worldObj = worldIn;
        this.rand.setSeed(worldIn.getSeed());
        long var7 = this.rand.nextLong();
        long var9 = this.rand.nextLong();

        for (int var11 = p_175792_3_ - var6; var11 <= p_175792_3_ + var6; ++var11) {
            for (int var12 = p_175792_4_ - var6; var12 <= p_175792_4_ + var6; ++var12) {
                long var13 = (long) var11 * var7;
                long var15 = (long) var12 * var9;
                this.rand.setSeed(var13 ^ var15 ^ worldIn.getSeed());
                this.func_180701_a(worldIn, var11, var12, p_175792_3_, p_175792_4_, p_175792_5_);
            }
        }
    }

    protected void func_180701_a(World worldIn, int p_180701_2_, int p_180701_3_, int p_180701_4_, int p_180701_5_, ChunkPrimer p_180701_6_) {
    }
}
